## This software is licensed by the MIT License, see LICENSE file ##
##                                    Copyright © 2022 whitemangl ##

from typing import Union

from aiogram import Dispatcher
from utils import TGPBot

from .on_message         import on_message
from .on_channel_message import on_channel_message
from .on_callback_call   import on_callback_call

def register_handlers(ctx: Union[Dispatcher, TGPBot]):
    ctx.observers["channel_post"].register(on_channel_message)
    ctx.observers["message"].register(on_message)
    ctx.observers["callback_query"].register(on_callback_call)
